<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <div class="footer">
      版权
      <button @click="$store.commit('add')">添加</button>
      <p>{{$store.state.count}}</p>
    </div>
  </div>
</template>

<script>
import Header from './components/Header'
import axios from 'axios'
export default {
  name: 'App',
  components: {Header},
  mounted(){
    axios.get("http://39.106.118.44:8081/librarytag/tag")
        .then(res => {
          console.log(res.data)
        })
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
